package cn.tqfeiyang.smartadmin.commons.validation;

import javax.validation.Constraint;
import javax.validation.Payload;

import java.lang.annotation.*;

@Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = { EntityIdValidator.class })
public @interface EntityId {

    String message() default "无效的id";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
